home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 1.5 KB | 77 lines | [TEXT/MPS ] |
- ;
- ; File: ShutDown.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__SHUTDOWN__') = 'UNDEFINED' THEN
- __SHUTDOWN__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
- include 'MixedMode.a'
- ENDIF
-
- sdOnPowerOff EQU 1 ;call procedure before power off.
- sdOnRestart EQU 2 ;call procedure before restart.
- sdOnUnmount EQU 4 ;call procedure before unmounting.
- sdOnDrivers EQU 8 ;call procedure before closing drivers.
- sdRestartOrPower EQU 3 ;call before either power off or restart.
-
- IF GENERATING68K THEN
- Macro
- _ShutDwnPower
- move.w #$0001,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT ShutDwnPower
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _ShutDwnStart
- move.w #$0002,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT ShutDwnStart
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _ShutDwnInstall
- move.w #$0003,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT ShutDwnInstall
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _ShutDwnRemove
- move.w #$0004,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT ShutDwnRemove
- ENDIF
-
- ENDIF ; __SHUTDOWN__
-